package com.android.lgc.android_mvp.ui.view;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.android.lgc.android_mvp.IPresenter.SecondPresenter;
import com.android.lgc.android_mvp.IView.SecondView;
import com.android.lgc.android_mvp.base.BaseActivity;
import com.android.lgc.android_mvp.utils.TestManager;
import com.kotiln.lgc.android_mvp.R;

public class SecondActivity extends AppCompatActivity/* BaseActivity<SecondView, SecondPresenter> implements SecondView*/ {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        //初始化内在泄漏的实例
        initData();
    }

    private void initData() {
        TestManager manager=TestManager.getInstanceSafe(this);
    }

/*    public void btnClick(View v){
        getPresenter().checkLeak();
    }

    @Override
    public SecondPresenter createPresenter() {
        return new SecondPresenter();
    }

    @Override
    public SecondView createView() {
        return this;
    }

    @Override
    public void onSecondResult(String result) {

    }*/
}